<template>
	<view class="container">
		<view class="mode-box">
			<view class="mode-title">模式选择</view>
			<view class="mode-item-box">
				<view @tap="selectMode" class="mode-item" data-index="1" :class="{'mode-item-a': modeIndex == 1}">普招</view>
				<view @tap="selectMode" class="mode-item" data-index="2" :class="{'mode-item-a': modeIndex == 2}">单招</view>
			</view>
			<view class="mode-item-box-art">
				<view @tap="selectMode" class="mode-item" data-index="3" :class="{'mode-item-a': modeIndex == 3}">艺术生</view>
			</view>
		</view>
		<view class="submit-btn-box">
			<view class="submit-btn">确认</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				modeIndex: 0,
			}
		},
		
		methods: {
			
			selectMode(e) {
				this.modeIndex = e.currentTarget.dataset.index
			}
			
		}
	}
</script>

<style>
	.container {
		width: 750rpx;
	}
	
	.tips {
		width: 620rpx;
		color: #999999;
		font-size: 24rpx;
		margin-top: 20rpx;
	}
	
	.mode-box {
		width: 750rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		margin-top: 36rpx;
	}
	
	.mode-title {
		width: 600rpx;
		font-size: 30rpx;
		color: #333333;
	}
	
	.mode-item-box {
		width: 640rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		margin-top: 30rpx;
	}
	
	.mode-item-box-art {
		width: 640rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		margin-top: 50rpx;
	}
	
	.mode-item {
		width: 300rpx;
		height: 86rpx;
		background-color: #f8f8f8;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		font-size: 30rpx;
		color: #666666;
	}
	
	.mode-item-a {
		color: #45d6b7;
		background-color: #a9f4e4;
	}
	
	.section-box {
		width: 750rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		margin-top: 90rpx;
	}
	
	.section-title {
		width: 600rpx;
		font-size: 30rpx;
		color: #333333;
	}
	
	.section-item-box {
		width: 640rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		flex-wrap: wrap;
		margin-top: 30rpx;
	}
	
	.section-item {
		width: 300rpx;
		height: 86rpx;
		background-color: #f8f8f8;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		font-size: 30rpx;
		color: #666666;
		margin-bottom: 50rpx;
	}
	
	.section-item-a {
		color: #45d6b7;
		background-color: #a9f4e4;
	}
	
	.submit-btn-box {
		position: fixed;
		bottom: 60rpx;
		width: 750rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	
	.submit-btn {
		width: 556rpx;
		height: 92rpx;
		background-color: #45d6b7;
		border-radius: 46rpx;
		font-size: 36rpx;
		color: #ffffff;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
</style>
